package org.jeecg.modules.demo.shareholderrecord.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.shareholderrecord.entity.ShareholderInfo;
import org.jeecg.modules.demo.shareholderrecord.entity.ShareholderRecord;
import org.jeecg.modules.demo.shareholderrecord.mapper.ShareholderRecordMapper;
import org.jeecg.modules.demo.shareholderrecord.service.IShareholderRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 创造股东分红记录
 * @Author: jeecg-boot
 * @Date: 2022-01-14
 * @Version: V1.0
 */
@Service
public class ShareholderRecordServiceImpl extends ServiceImpl<ShareholderRecordMapper, ShareholderRecord> implements IShareholderRecordService {
    @Autowired
    private ShareholderRecordMapper shareholderRecordMapper;

    // 根据分组id查询
    @Override
    public List<ShareholderInfo> getShareholderListByMemberId(Integer pageNo, Integer pageSize, String storeId, String memberId) {
        return shareholderRecordMapper.getShareholderListByMemberId(pageNo, pageSize, storeId, memberId);
    }
}
